import request from '@/utils/request'

export function getArchiveDetail(params) {
  return request({
    url: `/social_securitys/historys/archiveDetail/${params.userId}/${params.yearMonth}`
  })
}

export function getSocialSecuritysList(data) {
  return request({
    url: `/social_securitys/list`,
    method: 'POST',
    data
  })
}

// 查询社保历史归档列表
export function getShistorysHistorysList(year) {
  return request({
    url: `/social_securitys/historys/${year}/list`
  })
}

// 查询当月报表
export function getShistorysHistorysMList(params) {
  return request({
    url: `/social_securitys/historys/${params.yearMonth}`,
    params: { opType: params.opType }
  })
}

// 批量-导出考勤月份报表
export function getShistorysHistorysExport(params) {
  return request({
    url: `/social_securitys/historys/${params.yearMonth}/export`,
    responseType: 'blob',
    params: { opType: params.opType }
  })
}

